<!--
*Author：富行天下团队

 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/Mall/Small_operate_manual_name .js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/Small_operate_manual_name.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '商家列表',
                    name: 'Small_operate_manual_name',
                    url: "/Small_operate_manual_name/",
                    sortName: "id"
                },
                extend: extend,
                editFormFields: {"DealName":"","DataExpressCode":"","DealStatus":"",OperationStatus:"",ContactAddress:"",ContactPhone:"",Contact:"",LeaseEndDate:"",LeaseStartDate:"",Remark:""},
                editFormOptions: [[{"title":"名称","field":"DealName","type":"text",required: true},
                            {"title":"商家状态","field":"DealStatus",dataKey: '',type: 'switch',required: true,textSpan:['展示','中止']}],
                              [{"title":"类型","field":"OperationStatus",dataKey: '',type: 'select',data: [{ key: 1, value: '自营' },{ key: 2, value: '联营' },],required: true,},
                              {"title":"联系人","field":"Contact","type":"text"},
                            ],
                            [
                            {"title":"联系人电话","field":"ContactPhone","type":"text"},
                            {"title":"联系人地址","field":"ContactAddress", type: "text",},
                            ],
                            [
                              {
                                title: "租约开始时间",
                                field: "LeaseStartDate",
                                type: "datetime",
                              },
                              {
                                title: "租约结束时间",
                                field: "LeaseEndDate",
                                type: "datetime",
                              }
                            ],
                            [
                              {
                                title: "备注",
                                field: "Remark",
                                type: "textarea",
                                colSize: 12
                              },
                            ],
                            ],
                searchFormFields: {"DealName":""},
                searchFormOptions: [[{"title":"名称","field":"DealName","type":"text"}]],
                columns: [{field:'id',title:'id',type:'string',width:90,hidden:true,readonly:true,require:true,align:'left'},
                {field:'DealName',title:'名称',type:'string',width:120,align:'left'},
                       {field:'OperationStatus',title:'类型',type:'int',width:80,align:'left',bind: {data: [
                                        { key: 1, value: '自营' },
                                        { key: 2, value: '联营' },
                                      ]}},
                        {field:'merchantName',title:'商家名称',type:'string',width:120,align:'left'},
                      //  {field:'merchantCode',title:'商家编码',type:'string',width:120,align:'left'},
                       {field:'DataExpressCode',title:'数据快报商家编码',type:'string',width:160,align:'left'},
                       {field:'DealStatus',title:'商家状态',type:'int',width:100,align:'left',bind: {data: [
                        { key: 0, value: '中止' },
                        { key: 1, value: '展示' },
                                      ]}},
                        {field:'Contact',title:'联系人',type:'string',width:120,align:'left'},
                       {field:'ContactPhone',title:'联系人电话',type:'string',width:120,align:'left'},
                       {field:'ContactAddress',title:'联系人地址',type:'string',width:120,align:'left'},
                       {field:'LeaseEndDate',title:'租约结束时间',type:'datetime',width:180,align:'left',sortable:true},
                       {field:'LeaseStartDate',title:'租约开始时间',type:'datetime',width:180,align:'left',sortable:true},
                       {field:'creator',title:'创建人',type:'string',width:120,align:'left'},
                       {field:'createID',title:'创建人ID',type:'int',width:120,hidden:true,align:'left'},
                       {field:'createDate',title:'创建时间',type:'datetime',width:180,align:'left',sortable:true},
                       {field:'modifier',title:'修改人',type:'string',width:120,align:'left'},
                       {field:'modifyDate',title:'修改时间',type:'datetime',width:180,align:'left',sortable:true},
                       {field:'modifyID',title:'修改人ID',type:'int',width:120,hidden:true,align:'left'},
                       {field:'Remark',title:'备注',type:'string',width:120,align:'left',sortable:true},
                       ],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
